<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>APU New Pilot Registration</title>
<?php include('include/header.php'); ?>
</head>

<body>
<div align="center">

	<table class="table_roster_header">
		<tbody>
			<tr>
				<td><div align="center"><span class="textredBLrg">
				<?php
					include('include/config.php');
					echo $vaName;
				?>
				<br />
				New Pilot Registration Form </span></div></td>
			</tr>
		</tbody>
		<tfoot><tr><td></td></tr></tfoot>
  </table>

	<table class="table_loa">
    <caption>&nbsp;
    </caption>
    <thead>
      <tr>
        <th>&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="tableTextCenter">
		<form name="register_form" id="register_form" method="post" action="include/newpilot.php">
			  <table class="table_pirep">
			    <!--DWLayoutTable-->
				  <tbody>
						<tr>
							<td class="textdarkRight">First Name</td>
							<td><div align="center">
							  <input name="firstname" type="text" class="editfield" id="firstname" size="20" maxlength="15" />
							  </div>
							</td>
							<td class="textdark">Charles</td>
						</tr>
						<tr>
							<td class="textdarkRight">Last Name</td>
							<td><div align="center">
							  <input name="lastname" type="text" class="editfield" id="lastname" size="20" maxlength="15" />
							  </div>
							</td>
							<td class="textdark">Lindbergh</td>
						</tr>
						<tr>
							<td class="textdarkRight">Pilot ID</td>
							<td><div align="center">
							  <input name="pilot_id" type="text" class="editfield" id="pilot_id" size="20" maxlength="15" />
							  </div>
							</td>
							<td class="textdark">CA007DFW</td>
						</tr>
						<tr>
							<td class="textdarkRight">Email</td>
							<td><div align="center">
							  <input name="email" type="text" class="editfield" id="email" size="20" maxlength="50" />
							  </div>
							</td>
							<td class="textdark">CA007DFW</td>
						</tr>
						<tr>
							<td class="textdarkRight">Password </td>
							<td><div align="center">
							  <input name="password1" type="password" class="editfield" id="password1" size="20" maxlength="40" />
							  </div>
							</td>
							<td class="textdark">Password</td>
						</tr>
						<tr>
							<td class="textdarkRight">Password Again</td>
							<td><div align="center">
							  <input name="password2" type="password" class="editfield" id="password2" size="20" maxlength="40" />
							</div>
							</td>
							<td class="textdark">Password</td>
						</tr>

						<?php
							include("include/config.php");
							
							// If pilots can not register themselves, then an admin has to.
							if ( $bAllowPilotRegister == false )
							{
								echo "<tr>\n";
								echo "	<td>&nbsp;</td>\n";
								echo "	<td class=\"textredCenter\">Admin to register pilot</td>\n";
								echo "	<td>&nbsp;</td>\n";
								echo "</tr>\n";
								echo "<tr>\n";
								echo "	<td class=\"textdarkRight\">Admin login</td>\n";
								echo "	<td><div align=\"center\">\n";
								echo "	  <input name=\"admin_login\" type=\"text\" class=\"editfield\" id=\"admin_login\" size=\"20\" maxlength=\"15\" />\n";
								echo "	  </div>\n";
								echo "	</td>\n";
								echo "	<td>&nbsp;</td>\n";
								echo "</tr>\n";
								echo "<tr>\n";
								echo "	<td class=\"textdarkRight\">Admin Password</td>\n";
								echo "	<td><div align=\"center\">\n";
								echo "	  <input name=\"admin_password\" type=\"password\" class=\"editfield\" id=\"admin_password\" size=\"20\" maxlength=\"40\" />\n";
								echo "	  </div>\n";
								echo "	</td>\n";
								echo "	<td>&nbsp;</td>\n";
								echo "</tr>\n";
							}
						?>

				</tbody>
					<tfoot>
						<tr>
							<td colspan="3">
						      <div align="center">
							  <?php
							  	echo "<input name=\"referrer\" type=\"hidden\" value=\"" .$_SERVER['REQUEST_URI'] ."\" />\n";
							  ?>
						        <input name="Submit" type="image" id="Submit" src="img/submit_button.jpg" alt="Submit" />
						          </div></td></tr>
					</tfoot>
			</table>
       	  </form>
		</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td colspan="1"><div align="center">Click <a href="index.php">here</a> to return to the Pilots Room </div></td>
      </tr>
    </tfoot>
  </table>

<script type="text/javascript">
<!--
   document.forms[0].elements[0].focus()
// Position the cursor on the first form control
-->
</script>

    <?php
    	include('include/common.php');
    	echo "<p>" .$APU_COPYRIGHT ."</p>\n";
    ?></div>
</body>
</html>
